<template>
  <cyRefresh v-model="hospitalListRef" @initData="initData">
    <view v-for="item in hospitalListRef" :key="item.hospital_id" @click="onHospitalTap(item)">
      <cyHospitalItem :hospital="item"></cyHospitalItem>
    </view>
  </cyRefresh>
</template>

<script setup lang="ts">
import { userIndexHook } from './hooks';
import cyRefresh from '@/compoments/cy-refresh/cy-refresh.vue';
import cyHospitalItem from '@/compoments/cy-hospital-item/cy-hospital-item.vue';

const { hospitalListRef, initData, onHospitalTap } = userIndexHook();
</script>

<style lang="scss">
page {
  background: #f6f6f6 !important;
}
</style>
